#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include<stdbool.h>
#include<string.h>
#include<math.h>

int m;
bool islucky(char* arr, int n)
{
    int i = 0;
    int j = 0, max = 0, min = 100;
    char* x = arr;
    for (i = 0; i < n; i++)
    {
        int sum = 0;
        for (j = 0; j < n; j++)
        {
            if (x[i] == x[j])
            {
                sum++;
            }
        }
        if (sum > max)
        {
            max = sum;
        }
        if (sum < min)
        {
            min = sum;
        }
    }
    m = max - min;
    if (m == 1 || m == 0)
        return false;
    for (i = 2; i <= sqrt(m); i++)
    {
        if (m % i == 0)
        {
            return false;
        }
    }
    return true;
}
int main() {
    char arr[101] = { 0 };
    scanf("%s", arr);
    int num = strlen(arr);
    if (islucky(arr, num))
    {
        printf("Lucky Word\n");
        printf("%d", m);
    }
    else
    {
        m = 0;
        printf("No Answer\n");
        printf("%d", m);
    }
    return 0;
}

#include <stdio.h>
#include<string.h>

int main() {
    char ch[11] = { 0 };
    scanf("%s", ch);
    int n = strlen(ch);
    int i = 0;
    for (i = 1; i <= n; i++)
    {
        printf("%c", ch[i - 1]);
        if ((n - i) % 3 == 0 && i != n)
        {
            printf(",");
        }
    }
    return 0;
}